From: Jasper St. Pierre Date: Fri, 24 Aug 2012 01:47:23 +0000 (-0300) Subject: extensionDownloader: Fix extension installation X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~6056 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=67115b3e9bd38ff3a806c32e2aa3a456bfc2134a;p=gnome-shell.git extensionDownloader: Fix extension installation The name of the method is "get_as_bytes" https://bugzilla.gnome.org/show_bug.cgi?id=682578 --- diff --git a/js/ui/extensionDownloader.js b/js/ui/extensionDownloader.js index ea15c26a4..7f9a8718b 100644 --- a/js/ui/extensionDownloader.js +++ b/js/ui/extensionDownloader.js @@ -82,7 +82,7 @@ function gotExtensionZipFile(session, message, uuid, dir, callback, errback) { } let [file, stream] = Gio.File.new_tmp('XXXXXX.shell-extension.zip'); - let contents = message.response_body.flatten().as_bytes(); + let contents = message.response_body.flatten().get_as_bytes(); stream.output_stream.write_bytes(contents, null); stream.close(null); let [success, pid] = GLib.spawn_async(null,